//
//  LXAddClientView.m
//  跑跑快销
//
//  Created by linxian on 14-5-7.
//  Copyright (c) 2014年 ylife. All rights reserved.
//
#define ViewHeight                      [UIScreen mainScreen].bounds.size.height
#define commitBtnW                      300
#define commitBtnH                      50
#import "LXAddClientView.h"

@implementation LXAddClientView
@synthesize acTableView, commitBtn ;
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self creatUI];
    }
    return self;
}

- (void)creatUI
{
    if (ISDEVICE7) {
        _upViewY = 64.0;
    }else{
        _upViewY = 44.0;
    }
    
    [self createUpView1];
}

- (void)createUpView1
{
    // 添加新增客户按钮
    commitBtn = [[UIButton alloc] initWithFrame:CGRectMake((320-commitBtnW)/2.0, 44*4 + 20 , commitBtnW, commitBtnH)];
    
    commitBtn.tag = 1;
    commitBtn.backgroundColor = [UIColor blueColor];
    [self addSubview:commitBtn];
    
    acTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320,44*4+10)];
    acTableView.backgroundColor = [UIColor redColor];
    acTableView.scrollEnabled = NO;
    acTableView.bounces = NO;
    
//    acTableView.showsVerticalScrollIndicator = NO;
    [self addSubview:acTableView];
    
    
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
